﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Cashier_Model
{
    [Table(Tablename = "bill_shipment_repayment")]
    public class BillShipmentRepayment: BaseModel
    {
        private Int64 id;

        [Table(Columnname="id", Columntype="bigint", Iskey=true, Iscondition=true, Isdeletefield=true)]
        public Int64 Id
        {
            get { return id; }
            set { id = value; }
        }

        private String enterpriseNo;

        [Table(Columnname = "enterprise_no", Columntype = "varchar", Iscondition = true, Isdeletefield = true)]
        public String EnterpriseNo
        {
            get { return enterpriseNo; }
            set { enterpriseNo = value; }
        }

        private String storeNo;

        [Table(Columnname = "store_no", Columntype = "varchar", Iscondition = true)]
        public String StoreNo
        {
            get { return storeNo; }
            set { storeNo = value; }
        }

        private String shipmentNo;

        [Table(Columnname = "shipment_no", Columntype="varchar", Iscondition=true, Isdeletefield=true)]
        public String ShipmentNo
        {
            get { return shipmentNo; }
            set { shipmentNo = value; }
        }

        private String memberNo;

        [Table(Columnname = "member_no", Columntype = "varchar", Iscondition = true, Isdeletefield = true)]
        public String MemberNo
        {
            get { return memberNo; }
            set { memberNo = value; }
        }

        private String memberName;

        [Table(Columnname="member_name", Columntype="varchar")]
        public String MemberName
        {
            get { return memberName; }
            set { memberName = value; }
        }

        private Decimal shipmentTotal;

        [Table(Columnname="shipment_total", Columntype="decimal")]
        public Decimal ShipmentTotal
        {
            get { return shipmentTotal; }
            set { shipmentTotal = value; }
        }

        private Decimal debtAmount;

        [Table(Columnname = "debt_amount", Columntype = "decimal")]
        public Decimal DebtAmount
        {
            get { return debtAmount; }
            set { debtAmount = value; }
        }

        private Decimal payAmount;

        [Table(Columnname = "pay_amount", Columntype = "decimal", Isupdatefield=true)]
        public Decimal PayAmount
        {
            get { return payAmount; }
            set { payAmount = value; }
        }

        private Decimal giveAmount;

        [Table(Columnname = "give_amount", Columntype = "decimal", Isupdatefield = true)]
        public Decimal GiveAmount
        {
            get { return giveAmount; }
            set { giveAmount = value; }
        }

        private Decimal remainAmount;

        [Table(Columnname = "remain_amount", Columntype = "decimal", Isupdatefield = true)]
        public Decimal RemainAmount
        {
            get { return remainAmount; }
            set { remainAmount = value; }
        }

        private DateTime repaymentDate;

        [Table(Columnname = "repayment_date", Columntype = "datetime")]
        public DateTime RepaymentDate
        {
            get { return repaymentDate; }
            set { repaymentDate = value; }
        }

        private String adminUsername;

        [Table(Columnname = "admin_username", Columntype = "varchar", Iscondition = true)]
        public String AdminUsername
        {
            get { return adminUsername; }
            set { adminUsername = value; }
        }

        private String adminName;

        [Table(Columnname = "admin_name", Columntype = "varchar", Iscondition = true)]
        public String AdminName
        {
            get { return adminName; }
            set { adminName = value; }
        }

        private DateTime createtime;

        [Table(Columnname="createtime", Columntype="datetime")]
        public DateTime Createtime
        {
            get { return createtime; }
            set { createtime = value; }
        }
    }
}
